JavaScript

A5.u.math.conversionmap Method

Syntax

A5.u.math.conversion.map()

Returns

mapobject

Map of units to the type and system they are in.

Description

Retrieve a map of all convertible units.

Discussion

This method will return an object the property names of which are units that can be converted. The value of each property is an array of which the first entry is the type of the unit, and the second is the system the unit is in. For example, "lb" (or pounds) will have a type of "mass" and a system of "imperial".

Example

var m = A5.u.math.conversion.map();